<include file="__THEME__/header" />
<link rel="stylesheet" href="../Public/gift.css" type="text/css" charset="utf-8" />
<script src="../Public/js/gift.js" type="text/javascript"></script>
<script type="text/javascript">
var url = '__URL__';
$(function(){
		selectItems(1);
		<php>if($_GET["uid"] && $_GET['uid'] != $mid){</php>
			//指定发给某人
			var uid = {.uid}?{.uid}:"";
			if(uid){
				$(".ui-fs-input").remove();
				var image = "{$toUserFace}";
				var name  = "{$toUserName}";
				$(".ui-fs-result").append("<a href='javascript:void(0)' ><img width='20' height='20' src='" + image + "' title='" + name + "' alt='' />" + name + "</a>");
	            $("#ui_fri_ids").val(uid);
			}   
	<php>}</php>
});
function selectItems(id){
	$('.gift_items').each(function(test){
		$(this).attr('class','gift_items');
	});
	$('.giftblock').each(function(){
		$(this).css('display','none');
	});
	$('#gifts'+id).css('display','block');
	$('#item'+id).attr('class','gift_items on');
}

function sendGift(id){
	var clickid = 'gift'+id;
	$('.gifts').each(function(){
		if($(this).attr('id')==clickid){
			$(this).attr('class','gifts hand on');
		}else{
			$(this).attr('class','gifts hand');
		}
	});
	var temp_gift = $('#gift'+id).clone();
	$('#gift_info').html('');
	$('#gift_info').append(temp_gift.html());
	$('#gift_id').val(id);

	scroller('sendto', 1000);
}
function check(){
	if(!$('#gift_id').val()){
		Alert('请选择礼物');
		return false;
	}
	if(!($('#ui_fri_ids').val())){
		Alert('请选择礼物发送对象');
		return false;
	}
}
</script>

<div class="content">
  <!-- 内容 begin  -->
  <include file="__THEME__/apps" />
  <div class="main"><!-- 画布 begin  -->
    <div class="page_title">
      <h2><img src="../Public/images/interview.png" />面试</h2>
      <div class="c"></div>
    </div>
    <div style="padding-left:20px;">
    	考试结束！<br />
    	您目前已做了<font color="red">{$list['count_problem']}</font>道题，其中答对<font color="red">{$list['count_right']}</font>道,答错<font color="red">{$list['count_wrong']}</font>道,积分为<font color="red">{$list['scores']}</font>
    </div>
  </div><!-- 画布 end  -->
  <div class="c"></div>
</div><!-- 内容 end -->
<include file="__THEME__/footer" /> 